package cn.zysuyuan.item.client;

import cn.zysuyuan.user.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-23 8:58
 */

@FeignClient("user-service")
@RequestMapping("user")
public interface UserClient {

    @GetMapping("roleList")
    public User getRoleList(@RequestParam("id") String id);
}
